﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace University.Workshop.Model
{
    [Table("OTBData")]
    public class OtbData
    {
        public int Id {get; set;}
        public string Name { get; set; }
        public string Managment { get; set; }
        public string Background { get; set; }
        public int? ExpirationDay { get; set; }

        [ForeignKey("Person")]
        public string PresidentId { get; set; }

        public virtual Person Person { get; set; }
    }
}
